﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Vega.USiteBuilder;
using SPCFMedicineInformer.Constants;

namespace SPCFMedicineInformer.DocumentTypes.Base
{
    [DocumentType(Name="PageBase")]
    public class PageBase : GlobalBase
    {
        private string _menuTitle;
        [DocumentTypeProperty(UmbracoPropertyType.Textstring, Name = "Menu Title",
            Description = "Falls back on the nodes name, if not set",
            Tab = Tabs.Global)]
        public string MenuTitle
        {
            get { return string.IsNullOrEmpty(_menuTitle) ? Name : _menuTitle; }
            set { _menuTitle = value; }
        }


        
    }
}
